import React, { Component } from 'react';
import '../styles/CateInput.css';
import { withRouter } from 'react-router-dom';

class CateInput extends Component {
    toSearch() {
        this.props.history.push('/searchPage')
    }
    render() {
        return (
            <div className='cate-input'>
                <input type="text" placeholder='搜索店铺内商品' onClick={()=>{this.toSearch()}}/>
            </div>
        );
    }
}

export default withRouter(CateInput);